// ClientReceiver.h: interface for the ClientReceiver class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CLIENTRECEIVER_H__9DF195A2_8237_4666_BD06_84018A728310__INCLUDED_)
#define AFX_CLIENTRECEIVER_H__9DF195A2_8237_4666_BD06_84018A728310__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "../thread.h"
#include "absobserver.h"
#include <iostream>
#include "CNode.h"
#include "../types.h"
#include "../logger.h"
#include "../codigoClienteServer.h"


class ClientReceiver : public thread  
{
private:
	int clientNumber;
	MapObservers mapObservers;
	CNode node;
	std::string mutex;
	bool running;
	void cambiarCode(int& enumerado);
public:

	ClientReceiver(MapObservers &map,CNode& node,std::string mutex,int clientNumber);
	virtual ~ClientReceiver();

	virtual void run();

};

#endif // !defined(AFX_CLIENTRECEIVER_H__9DF195A2_8237_4666_BD06_84018A728310__INCLUDED_)
